<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>Document</title>
        <style>
            .pie {
                width: 100px;
                height: 100px;
                border-radius: 50%;
                background: yellowgreen;
                background-image: linear-gradient(to right, transparent 50%, #655 0);
            }
             
            .pie::before {
                content: '';
                display: block;
                margin-left: 50%;
                height: 100%;
                border-radius: 0 100% 100% 0/50%;
                background-color: inherit;
                transform-origin: left;
                /*transform: rotate(.2turn);*/
            }
        </style>
    </head>
    <body>
        <h1>纯CSS实现饼图、环形图（百分比）</h1>
        <p><a href="https://www.cnblogs.com/liangjing-yy/p/9008998.html">来源</a></p>
        <div class="pie"></div>
    </body>
</html>